package cn.vshare.service;

import cn.vshare.entity.Coin;
import cn.vshare.util.CoinChageException;

public interface CoinService {
    //    给用户开通一个金币账户
    void openUserAccount(String userId);

    //    给用户的账户充金币
    Coin recharge(String userId, int count);

    //  用户消费金额
    Coin consume(String userId, int count);

    //用户打赏
    Coin rewardToUser(String myId, String userId, int count, String videoId) throws CoinChageException;

    //    查询用户金额
    Coin queryCoinMess(String myId);

    //查询视频打赏金额
    int querySumCoinByVideoId(String videoId);


}
